/****** Object:  Stored Procedure [dbo].spDonViTinhUpdate Script Date: 6/11/2012 ******/
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[spDonViTinhUpdate]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[spDonViTinhUpdate]
GO

/******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:					Description:
**		--------	--------				-----------------------------------
**		11/06/2012	SongTM					Innit created
*******************************************************************************/

CREATE PROCEDURE [dbo].[spDonViTinhUpdate]
(
	@MaDonVi nvarchar(6),
	@TenDonVi nvarchar(20),
	@GhiChu nvarchar(100)
)

WITH ENCRYPTION

AS

SET NOCOUNT ON

UPDATE [tbl_DonViTinh]
SET [TenDonVi] = @TenDonVi,
	[GhiChu] = @GhiChu
WHERE	[MaDonVi] = @MaDonVi
GO

--GRANT EXECUTE ON [dbo].[spDonViTinhUpdate] TO [sa]
--GO
